<template>
  <div>
    <button @click="show">bar</button>
    <div>{{ title }}</div>
  </div>
</template>
<script>
export default {
  name: "Bar",
  created() {},
  data() {
    return {
      title: "我是bar哒哒哒哒哒哒",
    };
  },
  methods: {
    show() {
      console.log(this);
      alert("bar");
    },
  },
};
</script>
